﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Macds.Core.XML.Excel
{
    public class ExcelCell : ExcelBase
    {
        public string Text { get; set; }

        public ExcelCell() { }

        public ExcelCell(string Text)
        {
            this.Text = Text;
        }

        public override string ToString()
        {
            StringBuilder content = new StringBuilder();
            content.Append("<ss:Cell>\r\n");
            content.Append("<ss:Data ss:Type=\"String\">" + this.Text.Trim() + "</ss:Data>\r\n");
            content.Append("</ss:Cell>\r\n");

            return content.ToString();
        }
    }
}
